// 客户管理相关接口
import request from '@/utils/request'

// 获取客户列表
export function clientsList(params) {
  return request.get('/clients', { params })
}

// 获取客户数量
export function clientsCount(params) {
  return request.get('/clients/count', { params })
}

// 新建客户
export function addClients(data) {
  return request.post('/clients', data)
}

// 获取指定客户
export function getClientById(id) {
  return request.get('/clients/' + id)
}

// 编辑客户
export function editClients(data) {
  return request.put('/clients/' + data.id, data)
}

// 删除客户
export function deleteClients(id) {
  return request.delete('/clients/' + id)
}
